//部门相关的api接口
import requst from '@/utils/request'
//  查询
export const queryPageALLapi = (name,begin,end,page,pageSize) => requst.get(`/clazzs?name=${name}&begin=${begin}&end=${end}&page=${page}&pageSize=${pageSize}`);
//  新增
export const saveClass = (data) => requst.post('/clazzs',data);
//  删除
export const deleteClass = (id) => requst.delete(`/clazzs/${id}`);

//根据id查询
export const getClassById = (id) => requst.get(`/clazzs/${id}`);

// 修改
export const updateClass = (data) => requst.put('/clazzs',data);
//查询所有
export const getClazzList = () => requst.get('/clazzs/list');